Write a program which manipulates fractions. It should get two fractions from the user by inputing two numerators and two denumerators (integers) from...
Write a program which manipulates fractions.
It should get two fractions from the user by inputing two numerators and two denumerators (integers) from 0 to 999 and then have the user select an operation from addition, subtraction, multiplication, and division, check for input errors (<0 or >999) and for division by 0 and gives appropriate error messages, terminating in case of error.
It then displays the two fractions in fraction form, the operation between them and the result of the operation in fraction form and the result of the division.
Take care of the fraction line!
Example:
2 3 17
- + - = -- = 1.42
3 4 12
The program should then give the option to the user to repeat the process and enter a new pair of fractions or terminate the program
11 years ago
5
Answer(0)
Bids(0)
other Questions(10)
- Explain some factors that might indicate that nonparametric inference might be necessary
- phyllis young Transpertation
- A 60kg sprinter accelerates 1.5m/s^2. How much force was the sprinter exerting?
- Circuit
- GB600 Unit 04
- ECO 561 FINAL EXAM : 30 QUESTIONS
- NASA’s Langley Research Centre
- Marketing question
- Intermediate Accounting II for low price
- MGT:450 week 1 assignment